package org.leaf.green.b2b

class Adjustment {//库存盘点

    String serialNumber//序号
    Date date//日期
    Staff maker//制单人
    Boolean approved//审核码
    
    static hasMany = [details : AdjustmentDetail]

    String toString(){
        return "${serialNumber}"
    }

    static constraints = {
        serialNumber(nullable:false, blank:false, maxSize : 9)//{yy}{mm}{dd}{000}
        date(nullable:false)
        maker(nullable:false)
        approved(nullable:false)
    }

    static mapping = {
        table 'B2B_ADJUSTMENT'
    }


}
